This built-in template is used for creating React function components,
for example, through the Extract Component refactoring. You can customize the template,
for example, define components as arrow functions or change the definitions of prop types.
You can also use predefined variables. These variables will be replaced with the corresponding values when the template is applied.
|
| Predefined variables will take the following values: | ||
| component name | ||
| true if component has props | ||
| component body | ||
| prop types definition (using prop-types module) | ||